package com.example.flshtarvel.service;


import com.example.flshtarvel.mapper.ArticleRouteMapMapper;
import com.example.flshtarvel.vo.RouteVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleRouteMapService {
    @Autowired(required = false)
    ArticleRouteMapMapper articleRouteMapMapper;

    public int insertArticleRouteMap(String articleId,String routeId){
        return articleRouteMapMapper.insertArticleRouteMap(articleId,routeId);
    }

    public int deleteArticleRouteMap(String articleId,String routeId){
        return articleRouteMapMapper.deleteArticleRouteMap(articleId,routeId);
    }

    public int deleteArticleRouteMapByRouteId(String routeId){
        return articleRouteMapMapper.deleteArticleRouteMapByRouteId(routeId);
    }

    public List<RouteVo> seleteArticleRouteMapByArticleId(String articleId){
        return articleRouteMapMapper.seleteArticleRouteMapByArticleId(articleId);
    }
}
